package com.shuwen.gcdj.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 部件表 该表只存放一级二级部件，三级部件在字典表内维护；(BasicsStructure)表实体类
 *
 * @author makejava
 * @since 2023-05-09 13:32:14
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("basics_structure")
public class BasicsStructure extends Model<BasicsStructure> implements Serializable{
private static final long serialVersionUID = 1L;
   /**
    *主键id    
    */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;


    /**
    *部件名称    
    */
    private String name;

    /**
    *父级id    
    */
    private String parentId;

    /**
    *专业类型 1机械2电气    
    */
    private Integer structureType;

    /**
    *创建者id    
    */
    private String createId;

    /**
    *创建时间    
    */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    *更新者id    
    */
    private String updateId;

    /**
    *更新时间    
    */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
    *是否删除 1-删除 0-正常    
    */
    private Integer isDelete;

 /**
  * 备注
  */
    private String remark;

    /**
    *深度    
    */
    private Integer depth;

    /**
    *策略id    
    */
    private String strategyId;

    /**
    *人员id    
    */
    private String personnelId;
}
